package controller;


import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
    /**
     *
     * @return 返回的字符串就是返回的视图的名称
     */
    @RequestMapping("/test")
    public String  test(Model model){

        System.out.println("test======>>>");

        model.addAttribute("msg","注解的springMvc");

        return "hello";
    }
}
